package com.project.service;

import com.project.bean.CutPageBean;
import com.project.bean.ProductBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @Title: IProductService
 * @Package: com.project.service
 * @Description:
 * @Author: Liang-Xie
 * @Date: 2022/7/12 - 16:59
 */
@SuppressWarnings("all")
public interface IProductService {
    public void add(ProductBean productBean);
    public int addProduct(ProductBean productBean);
    public void del(Integer id);
    public void update(Integer id,Integer price);
    public List<ProductBean>findAll();
    public ProductBean findById(Integer id);
    public List<ProductBean> findByName(String name);
    public  List<ProductBean> findByItem(String name, LocalDate startDate,LocalDate endDate);
    public CutPageBean<ProductBean> cutByItem(int pageNO,String name,LocalDate startDate, LocalDate endDate);
    public void addMore(List<ProductBean>productBeanList);
    public void delMore(int [] idArray);
    public List<ProductBean> findByPrice(Integer lowPrice,Integer highPrice);

}
